package com.holly.unit.es.api.config;

/**
 * 类描述: ES相关配置类
 *
 * @author fxr
 * @version 1.0.0
 * @date 2022/4/2 13:04
 */
public class EsConfig {

    /***
     * es集群名称
     */
    public  String clusterName;

    /***
     * es的服务地址
     */
    public  String clusterNodes;

    /***
     * 验证配置的ES地址是否有效
     */
    public  boolean checkEnabled;


    /***
     * ElasticSearch 最大可返回条目数
     */
    public static int esMaxSize;

    /***
     * JSON格式
     */
    private String formatJson = "format=json";

    public String getClusterName() {
        return clusterName;
    }

    public void setClusterName(String clusterName) {
        this.clusterName = clusterName;
    }

    public String getClusterNodes() {
        return clusterNodes;
    }

    public void setClusterNodes(String clusterNodes) {
        this.clusterNodes = clusterNodes;
    }

    public boolean isCheckEnabled() {
        return checkEnabled;
    }

    public void setCheckEnabled(boolean checkEnabled) {
        this.checkEnabled = checkEnabled;
    }

    public int getEsMaxSize() {
        return esMaxSize;
    }

    public void setEsMaxSize(int esMaxSize) {
        this.esMaxSize = esMaxSize;
    }

    public String getFormatJson() {
        return formatJson;
    }

    public void setFormatJson(String formatJson) {
        this.formatJson = formatJson;
    }
}
